package com.southminority.ethnic;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * 南方少数民族语言文化资源平台启动类
 * 
 * @author SouthMinority
 */
@SpringBootApplication
@EnableCaching
@EnableAsync
@EnableScheduling
@MapperScan("com.southminority.ethnic.mapper")
@CrossOrigin
public class EthnicMinorityApplication {

    public static void main(String[] args) {
        SpringApplication.run(EthnicMinorityApplication.class, args);
        System.out.println("\n===========================================\n" +
                "南方少数民族语言文化资源平台启动成功！\n" +
                "访问地址: http://localhost:9030\n" +
                "API文档: http://localhost:9030/swagger-ui.html\n" +
                "===========================================\n");
    }
}
